<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>“站站融通”文明实践智慧服务</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', Arial, sans-serif;
            background: #f1f1f1;
            overflow-x: hidden;
        }
        
        /* 顶部导航栏 */
        .navbar {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            height: 44px;
            padding: 0 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
        }
        
        .navbar-title {
            font-size: 16px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .navbar-actions {
            position: relative;
            font-size: 20px;
            cursor: pointer;
        }
        
        .badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: #ff4757;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            min-width: 16px;
            text-align: center;
        }
        
        /* 滚动容器 */
        .scroll-container {
            margin-top: 44px;
            padding-bottom: 20px;
        }
        
        /* Banner区域 */
        .banner-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 30px 15px 20px;
            position: relative;
            overflow: hidden;
        }
        
        .banner-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }
        
        .particle {
            position: absolute;
            width: 5px;
            height: 5px;
            background: rgba(255,255,255,0.3);
            border-radius: 50%;
            animation: float 6s infinite ease-in-out;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0) scale(1); opacity: 0; }
            50% { transform: translateY(-50px) scale(1.5); opacity: 1; }
        }
        
        .banner-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
        }
        
        .banner-title {
            font-size: 19px;
            font-weight: bold;
            margin-bottom: 8px;
            line-height: 1.4;
        }
        
        .banner-subtitle {
            font-size: 13px;
            opacity: 0.9;
            margin-bottom: 20px;
        }
        
        .banner-stats {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            font-size: 11px;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .stat-divider {
            width: 1px;
            height: 15px;
            background: rgba(255,255,255,0.3);
        }
        
        /* 卡片通用样式 */
        .card {
            background: white;
            margin: 10px 15px;
            border-radius: 10px;
            padding: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        }
        
        .card-title {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 15px;
            font-weight: bold;
            margin-bottom: 12px;
        }
        
        .title-icon {
            font-size: 16px;
        }
        
        /* 个人信息卡 */
        .profile-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .avatar {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            flex-shrink: 0;
        }
        
        .profile-info {
            flex: 1;
        }
        
        .profile-name {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 4px;
        }
        
        .name-text {
            font-size: 16px;
            font-weight: bold;
        }
        
        .level-badge {
            background: #ff9800;
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 10px;
        }
        
        .profile-data {
            display: flex;
            gap: 12px;
            margin-top: 6px;
            font-size: 12px;
        }
        
        .profile-actions {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }
        
        .btn {
            padding: 8px 16px;
            border-radius: 20px;
            border: none;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
            flex: 1;
            text-align: center;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
        }
        
        .btn-outline {
            background: white;
            color: #667eea;
            border: 1px solid #667eea;
        }
        
        .btn:active {
            transform: scale(0.95);
        }
        
        /* 通知栏 */
        .notice-bar {
            background: #fff8e1;
            color: #ff9800;
            padding: 10px 15px;
            margin: 10px 15px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            line-height: 1.5;
        }
        
        /* 功能网格 */
        .function-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            padding: 0 15px;
            margin: 10px 0;
        }
        
        .function-item {
            background: white;
            border-radius: 10px;
            padding: 20px 10px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s;
        }
        
        .function-item:active {
            transform: scale(0.95);
        }
        
        .function-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
        }
        
        .function-item.blue::before {
            background: linear-gradient(90deg, #667eea, #764ba2);
        }
        
        .function-item.orange::before {
            background: linear-gradient(90deg, #ff9800, #ff5722);
        }
        
        .function-item.yellow::before {
            background: linear-gradient(90deg, #ffd89b, #f59e0b);
        }
        
        .function-item.green::before {
            background: linear-gradient(90deg, #4facfe, #00f2fe);
        }
        
        .function-item.purple::before {
            background: linear-gradient(90deg, #9c27b0, #e91e63);
        }
        
        .function-item.teal::before {
            background: linear-gradient(90deg, #00bcd4, #4dd0e1);
        }
        
        .function-icon {
            width: 50px;
            height: 50px;
            margin: 0 auto 10px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }
        
        .function-item.blue .function-icon {
            background: linear-gradient(135deg, #667eea, #764ba2);
        }
        
        .function-item.orange .function-icon {
            background: linear-gradient(135deg, #ff9800, #ff5722);
        }
        
        .function-item.yellow .function-icon {
            background: linear-gradient(135deg, #ffd89b, #f59e0b);
        }
        
        .function-item.green .function-icon {
            background: linear-gradient(135deg, #4facfe, #00f2fe);
        }
        
        .function-item.purple .function-icon {
            background: linear-gradient(135deg, #9c27b0, #e91e63);
        }
        
        .function-item.teal .function-icon {
            background: linear-gradient(135deg, #00bcd4, #4dd0e1);
        }
        
        .function-item.indigo::before {
            background: linear-gradient(90deg, #3f51b5, #9c27b0);
        }
        
        .function-item.indigo .function-icon {
            background: linear-gradient(135deg, #3f51b5, #9c27b0);
        }
        
        .function-item.pink::before {
            background: linear-gradient(90deg, #e91e63, #f44336);
        }
        
        .function-item.pink .function-icon {
            background: linear-gradient(135deg, #e91e63, #f44336);
        }
        
        .function-text {
            font-size: 13px;
            font-weight: 500;
            color: #333;
        }
        
        .function-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #ff4757;
            color: white;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 10px;
        }
        
        /* AI推荐 */
        .ai-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .ai-item {
            background: #f8f9fa;
            padding: 12px;
            border-radius: 6px;
        }
        
        .ai-title {
            font-size: 13px;
            font-weight: bold;
            margin-bottom: 6px;
        }
        
        .progress-bar {
            height: 10px;
            background: #e9ecef;
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 4px;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2);
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-right: 6px;
            color: white;
            font-size: 9px;
        }
        
        /* 活动公告 */
        .announcement-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .announcement-item {
            padding: 12px;
            background: #f8f9fa;
            border-radius: 8px;
            position: relative;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .announcement-item:hover {
            background: #e9ecef;
            transform: translateY(-1px);
        }
        
        .announcement-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: bold;
            color: white;
        }
        
        .announcement-badge.urgent {
            background: #ff4d4f;
        }
        
        .announcement-badge.important {
            background: #fa8c16;
        }
        
        .announcement-badge.normal {
            background: #1890ff;
        }
        
        .announcement-title {
            font-size: 14px;
            font-weight: bold;
            color: #333;
            margin-bottom: 6px;
            padding-right: 40px;
        }
        
        .announcement-content {
            font-size: 12px;
            color: #666;
            line-height: 1.5;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .announcement-meta {
            display: flex;
            gap: 12px;
            font-size: 10px;
            color: #999;
        }
        
        
        .btn-block {
            flex: 1;
            padding: 12px;
            text-align: center;
        }
        
        
        /* 商城网格 */
        .mall-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        
        .mall-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.3s;
        }
        
        .mall-item:active {
            transform: scale(0.95);
        }
        
        .mall-icon {
            font-size: 24px;
        }
        
        .mall-name {
            font-size: 11px;
        }
        
        .mall-price {
            font-size: 10px;
            color: #ff9800;
            font-weight: bold;
        }
        
        
        
        /* 社区统计 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            text-align: center;
        }
        
        .stat-value {
            font-size: 24px;
            font-weight: bold;
            color: #667eea;
        }
        
        .stat-label {
            font-size: 11px;
            color: #999;
            margin-top: 4px;
        }
        
        /* 动态列表 */
        .stream-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .stream-item {
            padding: 10px;
            background: #f8f9fa;
            border-radius: 6px;
            font-size: 12px;
            line-height: 1.6;
        }
        
        .stream-user {
            color: #667eea;
            font-weight: bold;
        }
        
        .stream-time {
            color: #999;
            font-size: 10px;
            margin-top: 4px;
        }
        
        /* 阵地列表 */
        .venue-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .venue-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 6px;
        }
        
        .venue-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }
        
        .venue-info {
            flex: 1;
        }
        
        .venue-name {
            font-size: 13px;
            font-weight: bold;
            margin-bottom: 4px;
        }
        
        .venue-addr {
            font-size: 11px;
            color: #999;
        }
        
        
        .more-link {
            text-align: right;
            color: #667eea;
            font-size: 12px;
            margin-top: 8px;
            cursor: pointer;
        }
        
        .subtitle {
            font-size: 11px;
            color: #999;
            margin-bottom: 10px;
        }
        
        /* 云上课堂 */
        .course-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .course-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 8px;
            position: relative;
            transition: all 0.3s;
        }
        
        .course-item:hover {
            background: #e9ecef;
            transform: translateY(-1px);
        }
        
        .course-item.featured {
            border: 2px solid #667eea;
            background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
        }
        
        .course-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            background: #ff4757;
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: bold;
        }
        
        .course-cover {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            flex-shrink: 0;
        }
        
        .course-info {
            flex: 1;
        }
        
        .course-title {
            font-size: 14px;
            font-weight: bold;
            color: #333;
            margin-bottom: 6px;
            line-height: 1.3;
        }
        
        .course-meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-bottom: 8px;
        }
        
        .course-instructor {
            font-size: 12px;
            color: #667eea;
            font-weight: bold;
        }
        
        .course-stats {
            font-size: 11px;
            color: #999;
        }
        
        .course-progress {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .course-progress .progress-bar {
            flex: 1;
            height: 8px;
            background: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .progress-text {
            font-size: 11px;
            color: #667eea;
            font-weight: bold;
            white-space: nowrap;
        }
        
        .course-action {
            display: flex;
            align-items: center;
        }
        
        .btn-start {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 12px;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-start:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="navbar">
        <div class="navbar-title">
            <span>📱</span>
            <span>文明实践</span>
        </div>
        <div class="navbar-actions" onclick="location.href='messages.html'">
            <span>🔔</span>
            <div class="badge">3</div>
        </div>
    </div>

    <!-- 滚动容器 -->
    <div class="scroll-container">
        <!-- Banner -->
        <div class="banner-section">
            <div class="banner-particles">
                <div class="particle" style="left: 10%; animation-delay: 0s;"></div>
                <div class="particle" style="left: 30%; animation-delay: 1s;"></div>
                <div class="particle" style="left: 50%; animation-delay: 2s;"></div>
                <div class="particle" style="left: 70%; animation-delay: 0.5s;"></div>
                <div class="particle" style="left: 90%; animation-delay: 1.5s;"></div>
            </div>
            <div class="banner-content">
                <div class="banner-title">“站站融通”文明实践智慧服务</div>
                <div class="banner-subtitle">共建文明社区，传递正能量</div>
                <div class="banner-stats">
                    <div class="stat-item">
                        <span>👥</span>
                        <span>已服务 12,580 人次</span>
                    </div>
                    <div class="stat-divider"></div>
                    <div class="stat-item">
                        <span>🎯</span>
                        <span>进行中 23 场</span>
                    </div>
                    <div class="stat-divider"></div>
                    <div class="stat-item">
                        <span>⭐</span>
                        <span>累计 156,890 分</span>
                    </div>
                </div>
            </div>
        </div>

        <!-- 个人信息卡 -->
        <div class="card">
            <div class="profile-card">
                <div class="avatar">👤</div>
                <div class="profile-info">
                    <div class="profile-name">
                        <span class="name-text">张三</span>
                        <span class="level-badge">⭐⭐⭐</span>
                    </div>
                    <div style="font-size: 11px; color: #999;">志愿者等级：金牌志愿者</div>
                    <div class="profile-data">
                        <span style="color: #667eea; font-weight: bold;">当前积分：1,250</span>
                        <span style="color: #999;">本月服务：3次</span>
                    </div>
                </div>
            </div>
            <div class="profile-actions">
                <button class="btn btn-outline" onclick="location.href='ranking.html'">📊 志愿者排行榜</button>
            </div>
        </div>

        <!-- 通知栏 -->
        <div class="notice-bar">
            <span>⚠️</span>
            <span>【重要通知】周六社区环保行动即将开始,欢迎报名参加！</span>
        </div>

        <!-- 功能网格 -->
        <div class="function-grid">
            <div class="function-item green" onclick="handleSignIn()">
                <div class="function-badge">未签</div>
                <div class="function-icon">✓</div>
                <div class="function-text">今日签到</div>
            </div>
            <div class="function-item purple" onclick="location.href='announcements.html'">
                <div class="function-icon">📢</div>
                <div class="function-text">活动公告</div>
            </div>
            <div class="function-item blue" onclick="location.href='venues.html'">
                <div class="function-icon">📍</div>
                <div class="function-text">阵地预约</div>
            </div>
            <div class="function-item yellow" onclick="location.href='mall.html'">
                <div class="function-icon">🎁</div>
                <div class="function-text">文明积分</div>
            </div>
            <div class="function-item indigo" onclick="location.href='courses.html'">
                <div class="function-icon">☁️</div>
                <div class="function-text">云上课堂</div>
            </div>
            <div class="function-item pink" onclick="location.href='volunteers.html'">
                <div class="function-icon">🤝</div>
                <div class="function-text">志愿服务</div>
            </div>
        </div>

        <!-- 活动公告 -->
        <div class="card">
            <div class="card-title">
                <span class="title-icon">📢</span>
                <span>活动公告</span>
            </div>
            <div class="announcement-list">
                <div class="announcement-item">
                    <div class="announcement-badge urgent">紧急</div>
                    <div class="announcement-title">社区环保清洁行动</div>
                    <div class="announcement-content">本周六上午9:00在文明实践中心集合，开展社区环保清洁志愿活动，欢迎大家踊跃参与！</div>
                    <div class="announcement-meta">
                        <span>📅 2024-01-20</span>
                        <span>👁️ 156人查看</span>
                    </div>
                </div>
                <div class="announcement-item">
                    <div class="announcement-badge important">重要</div>
                    <div class="announcement-title">春节期间值班安排</div>
                    <div class="announcement-content">春节期间志愿服务站将安排值班，请各位志愿者查看排班表，按时参加值班...</div>
                    <div class="announcement-meta">
                        <span>📅 2024-01-18</span>
                        <span>👁️ 89人查看</span>
                    </div>
                </div>
                <div class="announcement-item">
                    <div class="announcement-badge normal">通知</div>
                    <div class="announcement-title">积分商城上新啦</div>
                    <div class="announcement-content">积分商城新增多款精美礼品，包括图书券、电影票、健身卡等，快来兑换吧！</div>
                    <div class="announcement-meta">
                        <span>📅 2024-01-15</span>
                        <span>👁️ 234人查看</span>
                    </div>
                </div>
            </div>
            <div class="more-link" onclick="location.href='announcements.html'">查看更多公告 ></div>
        </div>




        <!-- 积分兑换 -->
        <div class="card">
            <div class="card-title">
                <span class="title-icon">🎁</span>
                <span>积分兑换</span>
            </div>
            <div class="mall-grid">
                <div class="mall-item">
                    <div class="mall-icon">🎫</div>
                    <div class="mall-name">电影券</div>
                    <div class="mall-price">500积分</div>
                </div>
                <div class="mall-item">
                    <div class="mall-icon">📚</div>
                    <div class="mall-name">图书卡</div>
                    <div class="mall-price">300积分</div>
                </div>
                <div class="mall-item">
                    <div class="mall-icon">🏃</div>
                    <div class="mall-name">健身卡</div>
                    <div class="mall-price">800积分</div>
                </div>
                <div class="mall-item">
                    <div class="mall-icon">🎭</div>
                    <div class="mall-name">演出票</div>
                    <div class="mall-price">1000积分</div>
                </div>
            </div>
            <div class="more-link" onclick="location.href='mall.html'">查看更多好礼 ></div>
        </div>



        <!-- 社区影响力 -->
        <div class="card">
            <div class="card-title">
                <span class="title-icon">📈</span>
                <span>本月社区贡献</span>
            </div>
            <div class="stats-grid">
                <div>
                    <div class="stat-value">1,250</div>
                    <div class="stat-label">参与人次 ↑</div>
                </div>
                <div>
                    <div class="stat-value" style="color: #ff9800;">3,680h</div>
                    <div class="stat-label">服务时长</div>
                </div>
                <div>
                    <div class="stat-value" style="color: #4caf50;">第8名</div>
                    <div class="stat-label">贡献排名</div>
                </div>
            </div>
        </div>

        <!-- 附近阵地 -->
        <div class="card">
            <div class="card-title">
                <span class="title-icon">🗺️</span>
                <span>附近阵地</span>
            </div>
            <div class="venue-list">
                <div class="venue-item">
                    <div class="venue-icon">📍</div>
                    <div class="venue-info">
                        <div class="venue-name">新时代文明实践中心</div>
                        <div class="venue-addr">📍 人民路123号 · 0.5km</div>
                    </div>
                    <button class="btn btn-primary" style="padding: 6px 16px;">预约</button>
                </div>
                <div class="venue-item">
                    <div class="venue-icon">📍</div>
                    <div class="venue-info">
                        <div class="venue-name">社区文化广场</div>
                        <div class="venue-addr">📍 文化街45号 · 1.2km</div>
                    </div>
                    <button class="btn btn-primary" style="padding: 6px 16px;">预约</button>
                </div>
            </div>
            <div class="more-link">查看地图模式 ></div>
        </div>

    </div>
    
    <script>
        // 签到功能
        function handleSignIn() {
            const badge = document.querySelector('.function-item.green .function-badge');
            if (badge.textContent === '未签') {
                badge.textContent = '已签';
                badge.style.background = '#10b981';
                alert('签到成功！获得10积分 🎉\n连续签到可获得额外奖励！');
            } else {
                alert('今日已签到，明天再来吧！😊');
            }
        }
        
        // 预约阵地
        function bookVenue(venueId) {
            alert('正在跳转到阵地预约页面...\n阵地ID: ' + venueId);
            location.href = 'venues.html';
        }
        
        
        // 阵地预约按钮
        document.querySelectorAll('.venue-item .btn').forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.preventDefault();
                location.href = 'venues.html';
            });
        });
    </script>
</body>
</html>